package com.kalvin.kvf.modules.cust.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.kalvin.kvf.modules.cust.entity.Man;
import com.kalvin.kvf.modules.cust.mapper.ManMapper;

import java.util.List;

/**
 * <p>
 * 测试表 服务实现类
 * </p>
 * @since 2020-12-27 22:51:04
 */
@Service
public class ManServiceImpl extends ServiceImpl<ManMapper, Man> implements ManService {

    @Override
    public Page<Man> listManPage(Man man) {
        Page<Man> page = new Page<>(man.getCurrent(), man.getSize());
        List<Man> mans = baseMapper.selectManList(man, page);
        return page.setRecords(mans);
    }

}
